#ifndef __ADS7950_H
#define __ADS7950_H

#include "hard_spi.h"

#define ADS7950_CS_PORT					GPIOA
#define ADS7950_CS_PIN				 	GPIO_Pin_0

#define ADS7950_CS_HIGH					GPIO_SetBits(ADS7950_CS_PORT,ADS7950_CS_PIN)
#define ADS7950_CS_LOW					GPIO_ResetBits(ADS7950_CS_PORT,ADS7950_CS_PIN)

float ADS7950_ReadAin0(void);
void ADS7950_Init(void);

#endif